\hypertarget{classTuna_1_1Momentum__YCoDi}{
\subsection{Tuna::Momentum\_\-YCoDi$<$ Tscheme $>$ Class Template Reference}
\label{classTuna_1_1Momentum__YCoDi}\index{Tuna::Momentum\_\-YCoDi@{Tuna::Momentum\_\-YCoDi}}
}


This class derives from \hyperlink{classTuna_1_1GeneralEquation}{GeneralEquation} through B \& N trick.  


Inheritance diagram for Tuna::Momentum\_\-YCoDi$<$ Tscheme $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classTuna_1_1Momentum__YCoDi}
\end{center}
\end{figure}
\subsubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef Typeinfo$<$ Tscheme $>$::\hyperlink{classTuna_1_1Momentum__YCoDi_a0520fc328ea72fa9983059257f390d0f}{prec\_\-t} \hyperlink{classTuna_1_1Momentum__YCoDi_a0520fc328ea72fa9983059257f390d0f}{prec\_\-t}
\begin{DoxyCompactList}\small\item\em Precision used for the numerical operations. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classTuna_1_1Momentum__YCoDi_a5dbabfaf03dbc9f540e3a304a70af52b}{Momentum\_\-YCoDi} (ScalarField \&phi\_\-global, DiagMat \&matrix, ScalarField \&b, const floatTinyArray\_\-t \&deltas)
\begin{DoxyCompactList}\small\item\em Main constructor. \end{DoxyCompactList}\item 
Tscheme \& \hyperlink{classTuna_1_1Momentum__YCoDi_a6626e86a8f357bcca758764585774e50}{asDerived} ()
\begin{DoxyCompactList}\small\item\em The Curiously Recursive Template Pattern (CRTP) is used. \end{DoxyCompactList}\item 
\hypertarget{classTuna_1_1Momentum__YCoDi_a2a8bc1b3ff851bdee49f6b193602585d}{
bool \hyperlink{classTuna_1_1Momentum__YCoDi_a2a8bc1b3ff851bdee49f6b193602585d}{calcCoefficients} ()}
\label{classTuna_1_1Momentum__YCoDi_a2a8bc1b3ff851bdee49f6b193602585d}

\begin{DoxyCompactList}\small\item\em Call to the functions defined in the derived classes. \end{DoxyCompactList}\item 
bool \hyperlink{classTuna_1_1Momentum__YCoDi_a4cab948a10cc1a19b4a696ede83d9278}{calcCoefficients} (const ScalarField \&nut)
\begin{DoxyCompactList}\small\item\em Function to calculate the coefficients of discrete equations for turbulent regime. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
\subsubsection*{template$<$typename Tscheme$>$class Tuna::Momentum\_\-YCoDi$<$ Tscheme $>$}

In this class some particular variables and methods for scalar PDE's are defined. This class implements the FVM discretized y-\/component of momentum equation for Newtonian incompressible fluids. It contains some parametres to account for natural convection (Rayleigh number, etc.).

\begin{DoxyAuthor}{Author}
Luis M. de la Cruz \mbox{[} Thu May 7 13:55:49 CDT 2009 \mbox{]} 
\end{DoxyAuthor}


Definition at line 48 of file Momentum\_\-YCoDi.hpp.



\subsubsection{Member Typedef Documentation}
\hypertarget{classTuna_1_1Momentum__YCoDi_a0520fc328ea72fa9983059257f390d0f}{
\index{Tuna::Momentum\_\-YCoDi@{Tuna::Momentum\_\-YCoDi}!prec\_\-t@{prec\_\-t}}
\index{prec\_\-t@{prec\_\-t}!Tuna::Momentum_YCoDi@{Tuna::Momentum\_\-YCoDi}}
\paragraph[{prec\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ typedef Typeinfo$<$Tscheme$>$::{\bf prec\_\-t} {\bf Tuna::Momentum\_\-YCoDi}$<$ Tscheme $>$::{\bf prec\_\-t}}}
\label{classTuna_1_1Momentum__YCoDi_a0520fc328ea72fa9983059257f390d0f}


Reimplemented from \hyperlink{classTuna_1_1GeneralEquation_a39e7293ae9e10a2fc90f422da1d28ecd}{Tuna::GeneralEquation$<$ Momentum\_\-YCoDi$<$ Tscheme $>$ $>$}.



Definition at line 53 of file Momentum\_\-YCoDi.hpp.



\subsubsection{Constructor \& Destructor Documentation}
\hypertarget{classTuna_1_1Momentum__YCoDi_a5dbabfaf03dbc9f540e3a304a70af52b}{
\index{Tuna::Momentum\_\-YCoDi@{Tuna::Momentum\_\-YCoDi}!Momentum\_\-YCoDi@{Momentum\_\-YCoDi}}
\index{Momentum\_\-YCoDi@{Momentum\_\-YCoDi}!Tuna::Momentum_YCoDi@{Tuna::Momentum\_\-YCoDi}}
\paragraph[{Momentum\_\-YCoDi}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ {\bf Tuna::Momentum\_\-YCoDi}$<$ Tscheme $>$::{\bf Momentum\_\-YCoDi} (
\begin{DoxyParamCaption}
\item[{ScalarField \&}]{phi\_\-global, }
\item[{DiagMat \&}]{matrix, }
\item[{ScalarField \&}]{b, }
\item[{const floatTinyArray\_\-t \&}]{deltas}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1Momentum__YCoDi_a5dbabfaf03dbc9f540e3a304a70af52b}
The scalarfield {\ttfamily phi\_\-0} defined here is a reference to a global field variable. Here {\ttfamily phi\_\-0} is used as an old value of that field variable. 

Definition at line 66 of file Momentum\_\-YCoDi.hpp.



\subsubsection{Member Function Documentation}
\hypertarget{classTuna_1_1Momentum__YCoDi_a6626e86a8f357bcca758764585774e50}{
\index{Tuna::Momentum\_\-YCoDi@{Tuna::Momentum\_\-YCoDi}!asDerived@{asDerived}}
\index{asDerived@{asDerived}!Tuna::Momentum_YCoDi@{Tuna::Momentum\_\-YCoDi}}
\paragraph[{asDerived}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ Tscheme\& {\bf Tuna::Momentum\_\-YCoDi}$<$ Tscheme $>$::asDerived (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1Momentum__YCoDi_a6626e86a8f357bcca758764585774e50}
\hyperlink{classTuna_1_1Momentum__YCoDi_a6626e86a8f357bcca758764585774e50}{asDerived()} gets an returns a reference to the derived class. 

Reimplemented from \hyperlink{classTuna_1_1GeneralEquation_aac63dc10324dcfdd7aaabdc63ec0c67f}{Tuna::GeneralEquation$<$ Momentum\_\-YCoDi$<$ Tscheme $>$ $>$}.



Definition at line 82 of file Momentum\_\-YCoDi.hpp.

\hypertarget{classTuna_1_1Momentum__YCoDi_a4cab948a10cc1a19b4a696ede83d9278}{
\index{Tuna::Momentum\_\-YCoDi@{Tuna::Momentum\_\-YCoDi}!calcCoefficients@{calcCoefficients}}
\index{calcCoefficients@{calcCoefficients}!Tuna::Momentum_YCoDi@{Tuna::Momentum\_\-YCoDi}}
\paragraph[{calcCoefficients}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ bool {\bf Tuna::Momentum\_\-YCoDi}$<$ Tscheme $>$::calcCoefficients (
\begin{DoxyParamCaption}
\item[{const ScalarField \&}]{nut}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1Momentum__YCoDi_a4cab948a10cc1a19b4a696ede83d9278}
Turbulent viscosity is passed as argument (nut) 

Definition at line 116 of file Momentum\_\-YCoDi.hpp.

